package org.sparkle.register;

public class RegisterObj {

	private Class clazz;
	private Object obj;
	private boolean singleton;
	private String initMethod;
	private boolean lazy;

	public RegisterObj(Class clazz) {
		this(clazz,null,true,null,true);
	}
	
	public RegisterObj(Class clazz, Object obj, boolean singleton,
			String initMethod, boolean lazy) {
		super();
		this.clazz = clazz;
		this.obj = obj;
		this.singleton = singleton;
		this.initMethod = initMethod;
		this.lazy = lazy;
	}

	public Class getClazz() {
		return clazz;
	}

	public void setClazz(Class clazz) {
		this.clazz = clazz;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public boolean isSingleton() {
		return singleton;
	}

	public void setSingleton(boolean singleton) {
		this.singleton = singleton;
	}

	public String getInitMethod() {
		return initMethod;
	}

	public void setInitMethod(String initMethod) {
		this.initMethod = initMethod;
	}

	public boolean isLazy() {
		return lazy;
	}

	public void setLazy(boolean lazy) {
		this.lazy = lazy;
	}

}
